package com.gitee.melin.bee.core.jdbc.dialect.maxcompute;

import com.gitee.melin.bee.core.jdbc.dialect.AbstractDBQuery;

public class MaxComputeQuery extends AbstractDBQuery {

    @Override
    public String tablesSql(String schemaName) {
        return "show tables";
    }

    @Override
    public String columnsSql(String schemaName, String tableName) {
        return String.format(" describe extended `%s`.`%s`", schemaName, tableName);
    }

    @Override
    public String schemaName() {
        return "database_name";
    }

    @Override
    public String createTableName() {
        return "createtab_stmt";
    }

    @Override
    public String tableName() {
        return "Info";
    }

    @Override
    public String tableComment() {
        return "comment";
    }

    @Override
    public String columnName() {
        return "Info";
    }

    @Override
    public String columnType() {
        return "data_type";
    }

    @Override
    public String columnComment() {
        return "comment";
    }
}
